package org.neuedu.chapter05_0618;

public class MethodDemo04 {
    public static void main(String[] args) {
        int x = 10;
        test1(x);
        System.out.println(x);// 10

        int[] y = {10};
        test2(y);
        System.out.println(y[0]);// 100
    }

    public static void test1(int x){
        x = x * 10;
    }

    public static void test2(int[] y) {
        y[0] = y[0] * 10;
    }

}
